package a.f.k;

import a.f.c.c;
import a.f.mb;
import a.f.o;
import a.f.vc;
import a.f.wc;

import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.util.Random;

public class a
  extends mb
{
  private Rectangle w = new Rectangle(0, 0, 500, 500);
  private long x;
  public static boolean y;
  public static int z;
  
  public a()
  {
    e(false);
    this.x = System.currentTimeMillis();
    vc localvc = g();
    if (i == 0) {
      if ((localvc instanceof c)) {
        ((c)localvc).a(false);
      }
    }
    if ((i != 0) || (q.n))
    {
      if (i == 0) {}
      y = !bool;
    }
    if (q.o)
    {
      i++;
      z = i;
    }
  }
  
  public void a(Rectangle paramRectangle)
  {
    this.w = paramRectangle;
  }
  
  public Rectangle a()
  {
    return this.w;
  }
  
  public boolean b(o paramo)
  {
    return true;
  }
  
  public void a(o paramo)
  {
    int i = z;
    boolean bool = y;
    wc.a(paramo);
    double d1 = 0.0D;
    double d2 = 0.0D;
    Object localObject = paramo.v();
    while (((a.c.w)localObject).e())
    {
      d1 = Math.max(d1, paramo.s(((a.c.w)localObject).d()));
      d2 = Math.max(d2, paramo.t(((a.c.w)localObject).d()));
      ((a.c.w)localObject).f();
      if (bool)
      {
        if (i == 0) {}
        q.n = !q.n;
      }
    }
    localObject = new Rectangle2D.Double();
    ((Rectangle2D)localObject).setFrame(this.w.x + d1 / 2.0D, this.w.y + d2 / 2.0D, this.w.width - d1, this.w.height - d1);
    Random localRandom = new Random(this.x);
    a.c.w localw = paramo.v();
    do
    {
      if (!localw.e()) {
        break;
      }
      a.d.w localw1 = new a.d.w(localRandom.nextDouble() * ((Rectangle2D)localObject).getWidth() + ((Rectangle2D)localObject).getX(), localRandom.nextDouble() * ((Rectangle2D)localObject).getHeight() + ((Rectangle2D)localObject).getY());
      paramo.a(localw.d(), localw1);
      localw.f();
    } while (!bool);
    if (i != 0) {
      q.o = !q.o;
    }
  }
  
  public long s()
  {
    return this.x;
  }
  
  public void a(long paramLong)
  {
    this.x = paramLong;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.k.a

 * JD-Core Version:    0.7.0.1

 */